#define _CRT_SECURE_NO_WARNINGS 2
#include"string.h"

void test1() {
	string s("hello world");

	string s1(100,'c');

	s1 = s;
}

void test2() {
	A::string s;
	s.append("hello world");
	s.append("xxxxx");
}

void test3() {
	A::string s;
	s.append("hello world");
	s.resize(20);

}

void test4() {
	A::string s;
	s.append("hello world");
	size_t position = s.find("world",7);
	cout << position << endl;
}

void test5() {
	A::string s;
	s.append("hello world");
	s.erase(5, 3);
	cout << s << endl;
	cin >> s;
	cout << s << endl;
	for (auto e : s) {
		cout << e << " ";
	}
}

int main() {
	/*int a = 4;
	int ret = (a == 4 ? 1 : 2) + 1;
	cout << ret << endl;*/
	test5();
	return 0;
}